<?php
return array(
	'searchColumns' => array(
		'category_id' => array('dropDownList',Yii::app()->enum->options('goods.category')),
	),
	
	'dataColumns' => array(
		'id', 'category.category_name', 
		array(
			'name' => 'provider.worker_name',
			'visible' => Yii::app()->adminUser->role != AdminUser::ROLE_PROVIDER,
		),
		array(
			'name' => 'status',
			'value' => '$data->stateHandle->lookup()'
		),
		array(
			'header' => '操作',
			'class' => 'ButtonColumn',
			'stateHandles' => array(
				'stateHandle',
			),
		),
	),
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>